package com.ansuenjob.model;

import java.sql.Timestamp;

/**
 * BstSecuritySaleLogId entity. @author MyEclipse Persistence Tools
 */

public class BstSecuritySaleLogId implements java.io.Serializable {

	// Fields

	private Integer mid;
	private Integer opType;
	private Integer comid;
	private String supperName;
	private String opip;
	private Timestamp opDate;

	// Constructors

	/** default constructor */
	public BstSecuritySaleLogId() {
	}

	/** minimal constructor */
	public BstSecuritySaleLogId(Integer mid) {
		this.mid = mid;
	}

	/** full constructor */
	public BstSecuritySaleLogId(Integer mid, Integer opType, Integer comid,
			String supperName, String opip, Timestamp opDate) {
		this.mid = mid;
		this.opType = opType;
		this.comid = comid;
		this.supperName = supperName;
		this.opip = opip;
		this.opDate = opDate;
	}

	// Property accessors

	public Integer getMid() {
		return this.mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public Integer getOpType() {
		return this.opType;
	}

	public void setOpType(Integer opType) {
		this.opType = opType;
	}

	public Integer getComid() {
		return this.comid;
	}

	public void setComid(Integer comid) {
		this.comid = comid;
	}

	public String getSupperName() {
		return this.supperName;
	}

	public void setSupperName(String supperName) {
		this.supperName = supperName;
	}

	public String getOpip() {
		return this.opip;
	}

	public void setOpip(String opip) {
		this.opip = opip;
	}

	public Timestamp getOpDate() {
		return this.opDate;
	}

	public void setOpDate(Timestamp opDate) {
		this.opDate = opDate;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof BstSecuritySaleLogId))
			return false;
		BstSecuritySaleLogId castOther = (BstSecuritySaleLogId) other;

		return ((this.getMid() == castOther.getMid()) || (this.getMid() != null
				&& castOther.getMid() != null && this.getMid().equals(
				castOther.getMid())))
				&& ((this.getOpType() == castOther.getOpType()) || (this
						.getOpType() != null && castOther.getOpType() != null && this
						.getOpType().equals(castOther.getOpType())))
				&& ((this.getComid() == castOther.getComid()) || (this
						.getComid() != null && castOther.getComid() != null && this
						.getComid().equals(castOther.getComid())))
				&& ((this.getSupperName() == castOther.getSupperName()) || (this
						.getSupperName() != null
						&& castOther.getSupperName() != null && this
						.getSupperName().equals(castOther.getSupperName())))
				&& ((this.getOpip() == castOther.getOpip()) || (this.getOpip() != null
						&& castOther.getOpip() != null && this.getOpip()
						.equals(castOther.getOpip())))
				&& ((this.getOpDate() == castOther.getOpDate()) || (this
						.getOpDate() != null && castOther.getOpDate() != null && this
						.getOpDate().equals(castOther.getOpDate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMid() == null ? 0 : this.getMid().hashCode());
		result = 37 * result
				+ (getOpType() == null ? 0 : this.getOpType().hashCode());
		result = 37 * result
				+ (getComid() == null ? 0 : this.getComid().hashCode());
		result = 37
				* result
				+ (getSupperName() == null ? 0 : this.getSupperName()
						.hashCode());
		result = 37 * result
				+ (getOpip() == null ? 0 : this.getOpip().hashCode());
		result = 37 * result
				+ (getOpDate() == null ? 0 : this.getOpDate().hashCode());
		return result;
	}

}